#include "formsystem.h"
#include "ui_formsystem.h"

#include <QDebug>

FormSystem::FormSystem(QWidget *parent) :
        QWidget(parent),
        ui(new Ui::FormSystem)
{
    ui->setupUi(this);
    setWindowFlags(windowFlags() | Qt::Dialog);
    setWindowModality(Qt::ApplicationModal);
    setAttribute(Qt::WA_DeleteOnClose);

    qDebug() << "[FormSystem] \t Constructor";
}

FormSystem::~FormSystem()
{
    delete ui;

    qDebug() << "[FormSystem] \t Destructor";
}

void FormSystem::on_pushButtonReturn_clicked()
{
    this->close();
}

void FormSystem::on_pushButtonSysinfo_clicked()
{
    sysInfoWin = new FormSystemInfo(this);
    sysInfoWin->show();
}

void FormSystem::on_pushButtonSysSetting_clicked()
{
    sysSettingWin = new FormSystemSetting(this);
    sysSettingWin->show();
}
